package com.sgzn.sgpay.service;

import com.sgzn.sgpay.model.request.SgsMerchantDiscountRuleAddRequest;
import com.sgzn.sgpay.model.request.SgsMerchantDiscountRuleQueryByMerchantIdRequest;
import com.sgzn.sgpay.model.request.SgsMerchantDiscountRuleQueryRequest;
import com.sgzn.sgpay.model.request.SgsMerchantDiscountRuleUpdateRequest;
import com.sgzn.sgpay.model.response.SgsResultResponse;
import com.sgzn.sgpay.persistence.domain.TMerchantDiscountRule;

import java.util.List;

/**
 * Created by linliangfang 13580393408
 * DATETIME:2018/6/3 15:45
 * Description: 商户消费优惠规则
 */
public interface SgsMerchantDiscountRuleService {
    /**
     * 添加商户消费优惠规则
     * @param request
     */
    SgsResultResponse<String> addMerchantDiscountRule(SgsMerchantDiscountRuleAddRequest request);

    /**
     * 查询商户消费优惠规则
     * @param request
     */
    SgsResultResponse<List<TMerchantDiscountRule>> queryMerchantDiscountList(SgsMerchantDiscountRuleQueryRequest request);

    /**
     * 查询商户消费优惠规则
     * @param request
     */
    SgsResultResponse<List<TMerchantDiscountRule>> queryByMerchantId(SgsMerchantDiscountRuleQueryByMerchantIdRequest request);

    /**
     * 更新商户消费优惠规则
     */
    SgsResultResponse<String> updateMerchantDiscountRule(SgsMerchantDiscountRuleUpdateRequest request);
}
